# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python2-selenium
pkgver=3.141.0
pkgrel=2
pkgdesc='Python bindings for Selenium.'
arch=('any')
url='https://pypi.org/project/selenium/#files'
license=('Apache2')
depends=('python2' 'python2-urllib3')
makedepends=('python2-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/selenium-$pkgver.tar.gz")
sha512sums=('3d2afbe9e96f88e9c055a89786b5090af387d3feba4598577b70fd3e0b20c2c09c4b25af920c654f52ec7e34f23181e6d278ac05f1a1f960d2d371ce7a6b82d8')

build() {
  cd "selenium-$pkgver"

  python2 setup.py build
}

package() {
  cd "selenium-$pkgver"

  python2 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 \
    --skip-build
}

